package com.zhz.livegoods.login.config;

import com.zhz.livegoods.acche.config.RedisCacheConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * 登录系统中的配置信息，配置Redis相关内容
 * @author zhz
 * @date 2020/08/08
 **/
@Configuration
public class LoginRedisConfig extends RedisCacheConfig {
    @Bean
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory){
        return super.redisTemplate(redisConnectionFactory);
    }
}
